package com.etc.entity;

import java.io.Serializable;
import java.util.UUID;

public class Equipment implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -7098655559562764860L;
	protected String equipId;   //装备编号
	protected String equipName; //装备名称
	protected int attrHeal;     //装备附带的生命值
	protected int attrImage;    //装备附带的魔法值
	protected int attrAttack;   //装备附带的攻击力
	protected int attrCrit;     //装备附带的暴击
	protected int attrDefense;  //装备附带的防御力
	protected int attrSpeed;    //装备附带的速度
	protected String type;      //装备的类型，有主武器，副武器，头盔，上衣，下衣，鞋子
	//穿上装备
	public void onEquipment() {
		
	}
	//改换装备
	public void changEquipment() {
		
	}
	//脱下装备
	public void offEquipment() {
		
	}
	public Equipment() {
		super();
	}
	public Equipment(String equipId, String equipName, int attrHeal, int attrImage, int attrAttack, int attrCrit,
			int attrDefense, int attrSpeed, String type) {
		super();
		this.equipId = equipId;
		this.equipName = equipName;
		this.attrHeal = attrHeal;
		this.attrImage = attrImage;
		this.attrAttack = attrAttack;
		this.attrCrit = attrCrit;
		this.attrDefense = attrDefense;
		this.attrSpeed = attrSpeed;
		this.type = type;
	}
	public Equipment(String equipName, int attrHeal, int attrImage, int attrAttack, int attrCrit,
			int attrDefense, int attrSpeed, String type) {
		super();
		this.equipId = UUID.randomUUID().toString().substring(0, 8);
		this.equipName = equipName;
		this.attrHeal = attrHeal;
		this.attrImage = attrImage;
		this.attrAttack = attrAttack;
		this.attrCrit = attrCrit;
		this.attrDefense = attrDefense;
		this.attrSpeed = attrSpeed;
		this.type = type;
	}
	public String getEquipId() {
		return equipId;
	}
	public void setEquipId(String equipId) {
		this.equipId = equipId;
	}
	public String getEquipName() {
		return equipName;
	}
	public void setEquipName(String equipName) {
		this.equipName = equipName;
	}
	public int getAttrHeal() {
		return attrHeal;
	}
	public void setAttrHeal(int attrHeal) {
		this.attrHeal = attrHeal;
	}
	public int getAttrImage() {
		return attrImage;
	}
	public void setAttrImage(int attrImage) {
		this.attrImage = attrImage;
	}
	public int getAttrAttack() {
		return attrAttack;
	}
	public void setAttrAttack(int attrAttack) {
		this.attrAttack = attrAttack;
	}
	public int getAttrCrit() {
		return attrCrit;
	}
	public void setAttrCrit(int attrCrit) {
		this.attrCrit = attrCrit;
	}
	public int getAttrDefense() {
		return attrDefense;
	}
	public void setAttrDefense(int attrDefense) {
		this.attrDefense = attrDefense;
	}
	public int getAttrSpeed() {
		return attrSpeed;
	}
	public void setAttrSpeed(int attrSpeed) {
		this.attrSpeed = attrSpeed;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	@Override
	public String toString() {
		return "Equipment [equipId=" + equipId + ", equipName=" + equipName + ", attrHeal=" + attrHeal + ", attrImage="
				+ attrImage + ", attrAttack=" + attrAttack + ", attrCrit=" + attrCrit + ", attrDefense=" + attrDefense
				+ ", attrSpeed=" + attrSpeed + ", type=" + type + "]";
	}
	
}
